#pragma warning(disable:4996)
#include<stdio.h>
#include<string.h>
//字符串旋转（循环法）
void My_Judge(char arr[], int longs)
{
	while (longs)
	{
		size_t i = 0;
		char tmp = arr[0];
		for (i = 0; i < strlen(arr) - 1; i++)
			arr[i] = arr[i + 1];
		arr[i+1] = tmp;
		longs--;
	}
	return;
}
int main()
{
	char arr[10] = "abcdf";
	char arr1[10] = "abcdf";
	int times, longs;
	scanf("%d", &times);
	longs = times % strlen(arr);
	My_Judge(arr, longs);
	if (strlen(arr) != strlen(arr1)){
		printf("不相等！\n");
		return 0;
	}
	if (strcmp(arr1, arr) == 0) {
		printf("相等！\n");
	}
	else
		printf("不相等！\n");
	return 0;
}